How to Fix A JavaScript Error Occurred in the Main Process